package cn.fw.community.client.api.tracking;

import cn.fw.community.client.model.req.TrackIngContextDo;
import io.gitee.chearnee.fw.common.model.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author cn
 * @version 1.0
 * @description
 * @date 2022/9/27 16:37
 */
@FeignClient(name = "track", url = "http://localhost/track")
public interface TrackClient {

    @PostMapping("event/tracking")
    ResultVo<Boolean> tracking(@RequestBody TrackIngContextDo tracking);

    @PostMapping("events/tracking")
    ResultVo<Boolean> tracksing(@RequestBody List<TrackIngContextDo> tracking);
}
